<script setup lang="ts">
const msg = useState<string>("msg");

const handlerSubmit = async (provider: Provider) => {
  await $post<any>("/provider", provider);
  msg.value = "服务商填加成功";
  navigateTo("/provider");
};
</script>

<template>
  <PageTitle>添加服务商</PageTitle>
  <ProviderInput @submit="handlerSubmit" />
</template>
